﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HttpUploader5.demoDistributed.db
{
	public partial class ajax_del : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			string fid = Request.QueryString["fid"];
			string uid = Request.QueryString["uid"];
			int ret = 0;

			if (fid.Length > 0
				&& uid.Length > 0)
			{
				HttpUploaderDB db = new HttpUploaderDB();
				db.Delete(Convert.ToInt32(uid), Convert.ToInt32(fid));
				ret = 1;
			}
			Response.Write(ret);
		}
	}
}
